package com.springboot;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * 方法描述
 * 1、启动程序时使用了动态租户，将SpringBoot自动添加数据源进行排除，否则会报循环依赖问题(@SpringBootApplication(exclude = DataSourceAutoConfiguration.class))
 * @author zyj
 * @date 18:00 2018/7/17
 */
@SpringBootApplication()
@EnableTransactionManagement
@EnableAsync
public class BusinessApplication {
	public static void main(String[] args) {
		SpringApplicationBuilder builder = new SpringApplicationBuilder(BusinessApplication.class);
		SpringApplication build = builder.build();
		build.setBannerMode(Banner.Mode.OFF);
		build.run(args);
	}

}
